import java.util.Scanner;

//import java.util.Scanner;
////学习scanner的用法
//public class scanner {
//    public static void main(String[] args) {
//        //new一个对象
//        Scanner sc = new Scanner(System.in);
//
//        System.out.println("请输入您的姓名：");
//        String name = sc.next();
//
//        System.out.println("请输入您的年龄：");
//        int age = sc.nextInt();
//
//        System.out.println("请输入您的性别：");
//        String gender = sc.next();
//
//        System.out.println("请输入您的身高：");
//        double height = sc.nextDouble();
//
//        System.out.println("请输入您的婚姻状况：");
//        boolean flag = sc.nextBoolean();
//
//        System.out.println("注册成功！");
//        System.out.println(name);
//        System.out.println(age);
//        System.out.println(gender);
//        System.out.println(height);
//        System.out.println(flag);
//    }
//}
public class scanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("Input your name:");
        String name = sc.next();
        System.out.println("Input your age:");
        int age = sc.nextInt();
        System.out.println("Input your gender:");
        String gender = sc.next();
        System.out.println(name);
        System.out.println(age);
        System.out.println(gender);

    }
}